<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="common.jsp"%>
<div id="content_right">
<script type="text/javascript">
	function getEmpMess(id){
		location.href = "../dept/deptEmpMessAction?empId="+id;
	}
	
</script>
	<p id="whereami">
	</p>
	
	<h1>部门信息</h1>
	<TABLE class=table cellSpacing=1>

		<TBODY>
			<s:iterator value="dlist" var="Department">
				<TR class=table_header>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						ID
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptId" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						部门名称
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptName" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						管理人
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.employee.empId" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>
				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						电话号码
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptTel" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						手机号码
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptMobile" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						邮箱
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptFax" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						标签
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptRemark" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

				<TR class=row2 onmouseover=this.className
					= 'row1';onmouseout=this.className='row2';>
					<TD vAlign=center align=left></TD>
					<TD vAlign=center align=left>
						状态
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Department.deptState" />
					</TD>
					<TD vAlign=center align=left></TD>
				</TR>

			</s:iterator>

		</TBODY>

	</TABLE>

	<h1>部门下的员工列表</h1>
	<TABLE class=table cellSpacing=1>
		<TBODY>
			<TR class=table_header>
				<TD vAlign=center align=left>
					人员ID
				</TD>
				<TD vAlign=center align=left>
					人员姓名
				</TD>
				<TD vAlign=center align=left>
					所属部门
				</TD>
				<TD vAlign=center align=left></TD>
				
			</TR>
			<s:iterator value="elist" var="Employee">
				<TR class=row2 onmouseover="this.className='row1'"
					onmouseout="this.className='row2'">
					<TD vAlign=center align=left>
						<s:property value="#Employee.empId" />
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Employee.empName"/>
					</TD>
					<TD vAlign=center align=left>
						<s:property value="#Employee.department.deptId"/>
					</TD>
					
					<TD vAlign=center align=left>
						<INPUT class=button onClick='getEmpMess("<s:property value="#Employee.empId" />");' type=button value=人员详情»>
					</TD>
				</TR>
			</s:iterator>
			
		</TBODY>
		
		
	</TABLE>
	<p>&nbsp;&nbsp;<INPUT class="button" type="button" onclick="location='../dept/deptListAction'" value="返回"></p>
	<p>
		&nbsp;
	</p>
	<p>
	</p>

</div>